package hm1;

public class student{
    String name;
    int age;
    String degree;
    public student(String name, int age, String degree){
        this.name = name;
        this.age = age;
        this.degree = degree;
    }
    public void show(){
        System.out.print("姓名:"+name+" 年龄:"+age+" 学位:"+degree);
    }
}